<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>个人中心</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="//unpkg.com/layui@2.9.21/dist/css/layui.css" rel="stylesheet">
    <style>
        .b {
            height: 50px;
            text-align: center;
            line-height: 50px;
        }

        img {
            width: 50px;
            height: 50px;
        }

        button {
            width: 80px;
            height: 30px;
        }
    </style>
</head>

<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">商城</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item"><a href="./首页/首页.html">商品列表</a></li>
                </ul>
            </div>
        </div>
        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div style="padding: 15px;">
                
                <blockquote class="layui-elem-quote layui-text">个人信息</button>
                </blockquote>
                <div class="layui-card layui-panel">
                    <div class="g">

                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script>
        var ge = document.querySelector('.g')
        var nam = localStorage.getItem('name')
        var number = localStorage.getItem('number')
        var email = localStorage.getItem('email')
        var obj = {
            name: nam,
            number: number,
            email: email,
        }
        ge.innerHTML += `
            <ul>
                <li class="b">头像：<img src="./微信图片_20250311115554.png"></li>
                <li class="b">用户名：${nam}</li>
                <li class="b">手机号：${number}</li>
                <li class="b">邮箱：${email}</li>
                <li class="b"><button onclick="tui()">退出登录</button></li>
                <li class="b"><button onclick="zhu()">注销账号</button></li>
            </ul>`

        function tui() {
            location.assign('./登录/登录.html')
        }
        function zhu() {
            localStorage.clear()
            location.assign('./注册/注册.html')
        }
    </script>
</body>

</html>